package com.hzb.shop.order.service;

import com.hzb.shop.order.entiy.ShopOrder;
import com.hzb.shop.order.mapper.ShopOrderMapper;
import com.hzb.shop.order.rpc.ShopOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by Administrator on 2017/9/11.
 */
@Service("shopOrderService")
public class ShopOrderServiceImpl implements ShopOrderService {
    @Autowired
    private ShopOrderMapper shopOrderMapper;

    public int add(ShopOrder shopOrder) {
        return shopOrderMapper.add(shopOrder);
    }

    public int update(ShopOrder shopOrder) {
        return shopOrderMapper.update(shopOrder);
    }

    public ShopOrder get(ShopOrder shopOrder) {
        return shopOrderMapper.get(shopOrder);
    }

    public List<ShopOrder> findList(ShopOrder shopOrder) {
        return shopOrderMapper.findList(shopOrder);
    }

    public int delete(ShopOrder shopOrder) {
        return shopOrderMapper.delete(shopOrder);
    }
}
